package com.aegean.MonitorExamSYS.center.action;

import javax.annotation.Resource;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.aegean.MonitorExamSYS.center.business.CenterBusiness;
import com.opensymphony.xwork2.ActionSupport;
@Controller("ValidBigTypeAction")
@Scope("prototype")
public class ValidBigTypeAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 2045134274033618279L;
	@Resource
	CenterBusiness business;
	private boolean success;
    private String bigType;
	public String getBigType() {
		return bigType;
	}

	public void setBigType(String bigType) {
		this.bigType = bigType;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	@Override
	public String execute() throws Exception {
		success=business.searchBigType(bigType);
		return SUCCESS;
	}
    
}
